import { useState ,lazy} from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'
import 'antd/dist/reset.css'
import { Button } from "antd";
// import Login from './components/login'

const Login = lazy(() => import('./components/login'))
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom';


function App() {

  return (
    // <>
    //   <Login />
    // </>

    <Router>
      <Routes>
        <Route path="/login" element={<Login />} />
        <Route path="*" element={<Navigate to="/login" replace />} />
      </Routes>
    </Router>
  )
}

export default App
